/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ManagedBean;
import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
import org.primefaces.event.SlideEndEvent;
/**
 *
 * @author BRUNO
 */
public class SliderBean {
    private int valor;
    
       public void setMinValue(int valor){
        this.valor = valor;
    }
    
    public double getMinValue(){
        return valor;
    }
    
     public void onSlideEnd(SlideEndEvent event) {
        FacesMessage msg = new FacesMessage("Slide Ended", "Value: " + event.getValue());
        FacesContext.getCurrentInstance().addMessage(null, msg);
    }

    
}
